<template>
  <div class="gocart" @click="goCart">
    <slot></slot>
  </div>
</template>

<script>
export default {
name:'GoCart',
methods:{
  goCart(){
    this.$router.push('/cart')
  }
}
}
</script>

<style lang="less" scoped>
.gocart{
  width: 25px;
  img{
    width: 100%;
  }
}
</style>